package com.my.demo.controller;

import com.my.demo.service.AlipayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liangyuanshao
 * @date 2021/12/27 - 23:34
 */
@RestController
public class AlipayController {
  @Autowired
  AlipayService alipayService;

  @GetMapping("/pay")
  public byte[] alipay(){
    return alipayService.alipay();
  }
}
